package com.javaweb.blogcite.service;

import com.javaweb.blogcite.common.PageData;
import com.javaweb.blogcite.controller.vo.BlogItemView;
import com.javaweb.blogcite.controller.vo.BlogView;
import com.javaweb.blogcite.pojo.Blog;

public interface BlogService {
    BlogView getBlogById(Integer id);
    Boolean deleteBlogById(Integer id);
    PageData<BlogItemView> getBlogByPage(Integer page, Integer limit, Integer categoryId);
    Boolean updateBlog(Integer id, Blog blog);
    boolean publishBlog(Blog blog);
}
